package DiErZhou.Secondweek;

public class Workthree {
    public static void main(String[] args) {
        int num = 0;
        for (int i = 2; i < 1000; i++) {
            boolean flag = true;
            for (int k = 2; k < i; k++){
                if (i % k == 0) {
                    flag = false;
                    break;
                }
            }
                if (flag) {
                num++;
                System.out.print(i+"\t\t");
                    if (num % 12 == 0) {
                        System.out.println();
                    }
               }
        }
    }
}


